Law of tangents